package com.chengn.queue.property;

public abstract class MyPropertyRunnable implements Runnable, Comparable<MyPropertyRunnable> {
    public int priority = 0;
    public MyPropertyRunnable(int priority) {
        this.priority = priority;
    }
    @Override
    public abstract void run();


    @Override
    public int compareTo(MyPropertyRunnable o) {
        return priority - o.priority;
    }
}